/*    */ package com.zimbra.cs.account;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.util.Zimbra;
/*    */ import java.util.ArrayList;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class ProvisioningExt
/*    */ {
/*    */   public static abstract class PostCreateAccountListener
/*    */     extends ProvisioningExt.ProvExt
/*    */   {
/*    */     public abstract void handle(Account paramAccount)
/*    */       throws ServiceException;
/*    */   }
/*    */   
/*    */   public static abstract class ProvExt
/*    */   {
/*    */     public abstract boolean serverOnly();
/*    */     
/*    */     public boolean enabled()
/*    */     {
/* 32 */       return (!serverOnly()) || (Zimbra.started());
/*    */     }
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/* 41 */   private static final ArrayList<PostCreateAccountListener> postCreateAccountListeners = new ArrayList();
/*    */   
/*    */   public static void addPostCreateAccountListener(PostCreateAccountListener listener) {
/* 44 */     synchronized (postCreateAccountListeners) {
/* 45 */       postCreateAccountListeners.add(listener);
/*    */     }
/*    */   }
/*    */   
/*    */   public static ArrayList<PostCreateAccountListener> getPostCreateAccountListeners() {
/* 50 */     return postCreateAccountListeners;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ProvisioningExt.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */